<template>
  <div class="home-banner">
    <XtxSlider :sliders="sliders" ></XtxSlider>
  </div>
</template>

<script>
import {reqFindBanner} from '@/api/home'
import {ref}  from  'vue'
export default {
  name: 'HomeBanner',
  setup(){
    const sliders=ref([])
     const  getBanner= async()=>{
       const res=await reqFindBanner()
        console.log(res,88);
        sliders.value=res.result
    }
    getBanner()

    return {sliders}

  }
}
</script>

<style scoped lang='less'>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>